// 商品表模型
const mongoose = require('mongoose');
let schema = new mongoose.Schema({
  goods_id: Number,
  title: String,
  img_big_logo: String,
  img_small_logo: String,
  price: Number,
  current_price: Number,
  goods_number: Number,
  is_sale: Number,
  sale_type: Number,
  is_hot: Number,
  goods_introduce: String,
  category: String
})

// 创建表模型(用于操作表的数据)
let model = mongoose.model('goods', schema, 'goods');

// 导出表模型
module.exports = model